package com.coder.books.thinkinjava.generics;

/**
 *
 * @author yuhushuan
 * @date 2020/8/11 09:13
 */
public class Holder<T> {
    private T value;

    public Holder() {
    }

    public void set(T value) {
        this.value = value;
    }

    public T get() {
        return value;
    }

    @Override
    public boolean equals(Object obj) {
        return value.equals(obj);
    }
}
